home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v10n06.arc
/
TENMAC.WWD
< prev
next >
Wrap
Text File
|
1991-03-06
|
3KB
|
107 lines
«MDNM»For PC users who don't like taking their hands
off the typing keys, here are six macros that let you
move the cursor without moving your hands. Using E,
X,
S, and D as four points of the compass, assign ArrowLeft
to ^S, ArrowRight to ^D, ArrowUp to ^E, and ArrowDown to
^X. Extending that geographic mnemonic slightly, assign
WordLeft to ^A and WordRight to ^F.
******************************************************
ArrowLeft
******************************************************
Sub MAIN
CharLeft 1
End Sub
*******************************************************
ArrowRight
******************************************************
Sub MAIN
CharRight 1
End Sub
*******************************************************
ArrowUp
******************************************************
Sub MAIN
LineUp 1
End Sub
*******************************************************
ArrowDown
******************************************************
Sub MAIN
LineDown 1
End Sub
*******************************************************
WordLeft
******************************************************
Sub MAIN
WordLeft 1
End Sub
*******************************************************
WordRight
******************************************************
Sub MAIN
WordRight 1
End Sub
Following are three deletion macros: for character, word,
and line. Assign them to the control-key combination of
your choice, and they will let you perform the most common
deletions without taking your hands from the typing keys.
A good set of mnemonics would be ^C for delete character,
^W for delete word, and ^L for delete Line.
*******************************************************
DeleteCharacter
******************************************************
Sub MAIN
CharRight 1, 1
EditClear
End Sub
*******************************************************
DeleteWord
******************************************************
Sub MAIN
WordRight 1, 1
EditCut
End Sub
*******************************************************
DeleteLine
******************************************************
Sub MAIN
StartOfLine
EndOfLine 1
EditCut
End Sub
Finally, here's a macro that will take you to the file
open dialog box and list the files available in any given
directory -- in this example, the DATA directory on C.
If you keep your files in several directories, you'll
find this extremely useful for moving among your direc-
tories.
*******************************************************
Data
******************************************************
Sub MAIN
Dim DRecord As FileOpen
GetCurValues DRecord
DRecord.Name = "C:\DATA\*.*"
SendKeys "{enter}{tab}{down}"
On Error Goto Skip
Dialog DRecord
Super FileOpen DRecord
Skip: End Sub